###################################################################
# Constants
#
# Modify this file for your own setup and make sure
# you have enough disk space to store the data (~ 2TB recommended).
###################################################################

const codedir = @__DIR__
push!(LOAD_PATH, codedir)
const datadir = joinpath(codedir,"..","data")
const gndir = "GoogleBooks"
mkpath(gndir)
const annualdir = joinpath(gndir,"annual")
mkpath(annualdir)
const totalsdir = joinpath(gndir,"totals")
mkpath(totalsdir)
const logdir = joinpath(gndir,"log")
mkpath(logdir)

# languages to download
const langs = ["eng-us","eng-gb","chi-sim","fre","ger","heb","ita","rus","spa"]

# define logger
using Logging
Logging.configure(;level=Logging.INFO,filename=joinpath(logdir, "gbn.$(gethostname()).$(myid()).log"))
